package com.deepocean.service;

import com.deepocean.entity.DeslimingScreenCondition;
import com.deepocean.entity.DeslimingScreenEntity;
import com.deepocean.entity.DeslimingScreenInAndOut1Hour;

import java.util.List;

public interface IDeslimingScreenService {
    /**
     * 新增数据
     * @param deslimingScreenEntity
     * @return
     */
    boolean add(DeslimingScreenEntity deslimingScreenEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    DeslimingScreenInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param deslimingScreenCondition
     * @return
     */
    List<DeslimingScreenEntity> getDeslimingScreenByCondition(DeslimingScreenCondition deslimingScreenCondition);
}
